//
//  SLNearlyBoatDetailViewModel.h
//  StarLight
//
//  Created by Duke.wu on 16/5/19.
//  Copyright © 2016年 Duke.Wu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SLNearLyShip.h"



@class SLBoatsDetailModel; @class SLBoatMoreModel;

@interface SLNearlyBoatDetailViewModel : NSObject

#pragma  mark - Detail

@property (nonatomic, strong) SLBoatsDetailModel *model;

- (instancetype)initWithBid:(NSString *)bid;

- (void)connectShipOwner;

#pragma  mark - More

@property (nonatomic, strong) SLBoatMoreModel *moreModel;

- (instancetype)initWithHid:(NSString *)hid;

- (void)refreshWithHid:(NSString *)hid;

@end


@interface SLBoatsDetailModel : NSObject

@property (nonatomic, assign) NSInteger cockpit;

@property (nonatomic, copy) NSString *rangs;

@property (nonatomic, copy) NSString *freespace;

@property (nonatomic, assign) NSInteger weight;

@property (nonatomic, assign) NSInteger goallon;

@property (nonatomic, assign) NSInteger loads;

@property (nonatomic, assign) CGFloat shiplat;

@property (nonatomic, copy) NSString *boatname;

@property (nonatomic, copy) NSString *headPhoto;

@property (nonatomic, copy) NSString *shiploc;

@property (nonatomic, assign) NSInteger goallat;

@property (nonatomic, copy) NSString *name;

@property (nonatomic, copy) NSString *goalloc;

@property (nonatomic, copy) NSString *reservetime;

@property (nonatomic, assign) NSInteger state;

@property (nonatomic, assign) NSInteger type;

@property (nonatomic, copy) NSString *mmsi;
/**船主ID， 用来 联系船主*/
@property (nonatomic, copy) NSString *shiponwerId;

@property (nonatomic, assign) NSInteger distance;

@property (nonatomic, copy) NSString *boattype;

@property (nonatomic, assign) NSInteger draft;

@property (nonatomic, assign) NSInteger height;

@property (nonatomic, copy) NSString *note;

@property (nonatomic, assign) NSInteger role;

@property (nonatomic, assign) CGFloat shiplon;

@property (nonatomic, copy) NSString *statetime;

@property (nonatomic, copy) NSString *bid;

@property (nonatomic, strong) NSString *image;

@end






@interface SLBoatMoreModel : NSObject

@property (nonatomic, copy) NSString *name;

@property (nonatomic, copy) NSString *phone;

@property (nonatomic, assign) NSInteger shipOwnerId;

@property (nonatomic, assign) NSInteger role;

@property (nonatomic, strong) NSArray *boats;

@property (nonatomic, assign) NSInteger type;

@property (nonatomic, assign) NSInteger buddyState;

@property (nonatomic, copy) NSString *headPhoto;

@end




